import request from "../utils/request";
import {apiDataType, apiIdType} from "types";
import qs from "qs";

// 列表
export function getRecord(data: apiDataType) {
    return request({
        url: '/grid/gridcenter/communityVenueOrder/list',
        method: 'post',
        headers: {'Content-Type': 'application/json'},
        data
    })
}

export function getVisitors(id: apiIdType) {
    return request({
        url: '/grid/gridcenter/communityVenueVisitors/list',
        method: 'post',
        headers: {'Content-Type': 'application/x-www-form-urlencoded'},
        data: qs.stringify({id})
    })
}

